﻿<QRCode OnGenerated="@OnGenerated"></QRCode>
<Logger @ref="Trace" class="mt-3" />

@code {
    private Logger? Trace { get; set; }

    private Task OnGenerated()
    {
        Trace?.Log("二维码生成成功");
        return Task.CompletedTask;
    }
}